<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="Bar code component for Vue.js.">
  <meta name="author" content="Chen Fengyuan">
  <title>vue-barcode</title>
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" crossorigin="anonymous">
  <link rel="stylesheet" href="https://unpkg.com/highlightjs@9.16.2/styles/github.css" crossorigin="anonymous">
  <link rel="stylesheet" href="css/main.css">
</head>
<body>
  <header class="navbar navbar-light navbar-expand-md">
    <div class="container">
      <a class="navbar-brand" href="./">vue-barcode</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-collapse" aria-controls="navbar-collapse" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse justify-content-end" id="navbar-collapse" role="navigation">
        <nav class="nav navbar-nav">
          <a class="nav-link" href="https://github.com/fengyuanchen/vue-barcode/blob/master/README.md" title="View the documentation">Docs</a>
          <a class="nav-link" href="https://github.com/fengyuanchen/vue-barcode" title="View the GitHub project">GitHub</a>
          <a class="nav-link" href="https://fengyuanchen.github.io/" title="Explore more projects">Explore</a>
          <a class="nav-link" href="https://github.com/fengyuanchen" title="About the team">About</a>
        </nav>
      </div>
    </div>
  </header>

  <div class="jumbotron rounded-0 bg-primary text-white">
    <div class="container">
        <div class="row">
          <div class="col-md">
            <h1>vue-barcode <small class="h6">v1.0.1</small></h1>
            <p class="lead">Bar code component for Vue.js.</p>
          </div>
          <div class="col-md">
            <div class="carbonads">
              <script id="_carbonads_js" src="https://cdn.carbonads.com/carbon.js?serve=CKYI55Q7&placement=fengyuanchengithubio" async></script>
            </div>
          </div>
        </div>
      </div>
  </div>

  <div class="container">
    <h3>Examples</h3>
    <hr>
    <div id="app">
      <barcode value="1234567890"></barcode>
      <barcode value="1234567890" :options="{ textAlign: 'right', lineColor: '#007bff', describe: { text: 'dddd', textAlign: 'left'} }" tag="svg"></barcode>
      <barcode value="1234567890" tag="img"></barcode>
    </div>
    <br>

    <h6>HTML:</h6>
    <pre><code class="language-html">&lt;div id=&quot;app&quot;&gt;
  &lt;barcode value=&quot;1234567890&quot;&gt;&lt;/barcode&gt;
  &lt;barcode value=&quot;1234567890&quot; :options=&quot;{ lineColor: &#039;#007bff&#039; }&quot; tag=&quot;svg&quot;&gt;&lt;/barcode&gt;
  &lt;barcode value=&quot;1234567890&quot; tag=&quot;img&quot;&gt;&lt;/barcode&gt;
&lt;/div&gt;</code></pre>

    <h6>JavaScript:</h6>
    <pre><code class="language-js">window.onload = function () {
  Vue.component(VueBarcode.name, VueBarcode);

  new Vue({
    el: '#app',
  });
};</code></pre>
  </div>

  <footer class="footer">
    <div class="container">
      <p class="heart"></p>
      <nav class="nav flex-wrap justify-content-center mb-3">
        <a class="nav-link" href="https://github.com/fengyuanchen/vue-barcode">GitHub</a>
        <a class="nav-link" href="https://github.com/fengyuanchen/vue-barcode/blob/master/LICENSE">License</a>
        <a class="nav-link" href="https://chenfengyuan.com/">About</a>
      </nav>
    </div>
  </footer>

  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
  <script src="https://unpkg.com/vue@2.6.11/dist/vue.min.js" crossorigin="anonymous"></script>
  <script src="https://unpkg.com/highlightjs@9.16.2/highlight.pack.js" crossorigin="anonymous"></script>
  <script src="https://fengyuanchen.github.io/shared/google-analytics.js" crossorigin="anonymous"></script>
  <script>hljs.initHighlightingOnLoad();</script>
  <script src="../dist/vue-barcode.js"></script>
  <script src="js/main.js"></script>
</body>
</html>
